export const getLoginId = (event: any) => {
  return event.context.auth ? event.context.auth : 0
}

export const getTime = () => {
  const currentDate = new Date()
  const year = currentDate.getFullYear()
  const month = ('0' + currentDate.getMonth() + 1).slice(-2)
  const day = ('0' + currentDate.getDay()).slice(-2)
  return year + '-' + month + '-' + day
}
